package com.qjdchina.sku.front.web.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.qjdchina.common.web.util.RestBody;
import com.qjdchina.commons.result.Result;
import com.qjdchina.sku.biz.HardcoverCostManager;
import com.qjdchina.sku.model.vo.HardcoverCostVO;
import com.qjdchina.sku.service.enums.SkuResultCode;


@Controller
@RequestMapping(value = "hardcoverCost")
public class HardcoverCostController {

    @Autowired
    private HardcoverCostManager hardcoverCostManager;

    /**
     * 获取所有精装费用
     * shenpingfeng
     * 2017年1月3日
     * @param request
     * @return
     */
    @RequestMapping(value = "getAllHardcoverCost",method = RequestMethod.GET)
    @ResponseBody
    public RestBody<List<HardcoverCostVO>> getBrandByCategory(HttpServletRequest request){
    	Result<List<HardcoverCostVO>> result = hardcoverCostManager.getAllHardcoverCost();	
    	
        return new RestBody<List<HardcoverCostVO>>(SkuResultCode.SUCCESS,result.getDataModel());
    }
}
